x86: Allow selection of graphical video modes during boot.
authorKeir Fraser <keir@xensource.com>
Sun, 10 Jun 2007 14:58:08 +0000 (15:58 +0100)
committerKeir Fraser <keir@xensource.com>
Sun, 10 Jun 2007 14:58:08 +0000 (15:58 +0100)
commit08f2039517e1c3b178e167153e6b10ec53966a8b
treed141a39d6a87fab61b7b30da8f25231a0525f755
parent0da9d71b9c5e5c3dde20e246989fb942476aee8b
x86: Allow selection of graphical video modes during boot.

The 'vga=' boot option is extended as follows:

----------
 'vga=<mode-specifier>[,keep]' where <mode-specifier> is one of:

   'vga=ask':
      display a vga menu of available modes

   'vga=text-80x<rows>':
      text mode, where <rows> is one of {25,28,30,34,43,50,60}

   'vga=gfx-<width>x<height>x<depth>':
      graphics mode, e.g., vga=gfx-1024x768x16

   'vga=mode-<mode>:
      specifies a mode as specified in 'vga=ask' menu
      (NB. menu modes are displayed in hex, so mode numbers here must
           be prefixed with '0x' (e.g., 'vga=mode-0x0318'))

 The option 'keep' causes Xen to continue to print to the VGA console even
 after domain 0 starts to boot. The default behaviour is to relinquish
 control of the console to domain 0.
----------

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/boot/Makefile
xen/arch/x86/boot/cmdline.S [new file with mode: 0644]
xen/arch/x86/boot/head.S
xen/arch/x86/boot/trampoline.S
xen/arch/x86/boot/video.S [new file with mode: 0644]
xen/arch/x86/boot/video.h [new file with mode: 0644]
xen/arch/x86/setup.c
xen/drivers/video/vga.c
xen/include/public/xen.h
xen/include/xen/vga.h